package com.atguigu.dga.governance.assess.demo;

import java.util.regex.Matcher;
import java.util.regex.Pattern;
//测试正则表达式的demo
public class RegexDemo {
    public static void main(String[] args) {
        Pattern pattern = Pattern.compile("^\\w+@\\w{1,16}\\.(com|cn|org)$");

        Matcher matcher = pattern.matcher("ZhangJY_0819@aliyunjoiqweh1231.com");
            System.out.println("matcher = " + matcher.matches());

    }
}
